package com.bys.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bys.generator.base.BaseModel;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* PackageName:  com.bys.system.model
* ClassName:    SysDeptModel
* Description:  组织机构实体类
* Author:       bys
* Date:         2023-03-31
**/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_dept", autoResultMap = true)
@Schema(description = "组织机构实体类")
public class SysDeptModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Schema(description = "部门名称")
    @TableField("`name`")
    private String name;

    @Schema(description = "上级部门id")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "树结构")
    @TableField("tree_path")
    private String treePath;

    @Schema(description = "排序")
    @TableField("sort_value")
    private Integer sortValue;

    @Schema(description = "负责人")
    @TableField("leader")
    private String leader;

    @Schema(description = "电话")
    @TableField("phone")
    private String phone;

    @Schema(description = "状态（1正常 0停用）")
    @TableField("`status`")
    private Boolean status;


}